package cc.miwuya.community.api;

import cc.miwuya.community.domain.Role;
import cc.miwuya.community.domain.RoleUser;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @Author 迷雾森林
 * @Date 2024-02-29 10:07
 */
public interface RoleApi {
    @GetMapping("/community/user/getUserRoleByUsername/{username}")
    public List<RoleUser> getUserRoleByUsername(@PathVariable String username);
    @GetMapping("/community/role/userRole/{id}")
    public List<Role> getUserRole(@PathVariable Long id);
}
